package com.ruoyi.swzl.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物品遗失/拾取登记对象 goods
 * 
 * @author k
 * @date 2025-03-29
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 物品名称 */
    @Excel(name = "物品名称")
    private String name;

    /** 遗失地点 */
    @Excel(name = "遗失地点")
    private String address;

    /** 物品类别 */
    @Excel(name = "物品类别")
    private Long goodsType;

    /** 特征描述 */
    @Excel(name = "特征描述")
    private String feature;

    /** 手机号 */
    @Excel(name = "手机号")
    private Long phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 登记类型（0-拾取；1-遗失） */
    @Excel(name = "登记类型", readConverterExp = "0=-拾取；1-遗失")
    private String registerType;

    /** 物品图片 */
    @Excel(name = "物品图片")
    private String photo;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setGoodsType(Long goodsType) 
    {
        this.goodsType = goodsType;
    }

    public Long getGoodsType() 
    {
        return goodsType;
    }
    public void setFeature(String feature) 
    {
        this.feature = feature;
    }

    public String getFeature() 
    {
        return feature;
    }
    public void setPhone(Long phone) 
    {
        this.phone = phone;
    }

    public Long getPhone() 
    {
        return phone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setRegisterType(String registerType) 
    {
        this.registerType = registerType;
    }

    public String getRegisterType() 
    {
        return registerType;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("address", getAddress())
            .append("goodsType", getGoodsType())
            .append("feature", getFeature())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("registerType", getRegisterType())
            .append("photo", getPhoto())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
